/*
import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        System.out.println("请输入要比较的数字个数：");
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();

        if(n == 2){
            System.out.println("请输入要比较的数字：");
            double x = scanner.nextDouble();
            double y = scanner.nextDouble();
            System.out.println(max(x,y));
        }

        else if(n == 3){
            System.out.println("请输入要比较的数字：");
            double x2 = scanner.nextDouble();
            double y2 = scanner.nextDouble();
            double z2 = scanner.nextDouble();
            System.out.println(max(x2,y2,z2));
        }
        else{
            System.out.println("输入错误，请重新输入:");
        }
    }
    public static double max(double a,double b){
        return a>b?a:b;
    }
    public static double max(double a,double b,double c){
        return max(a,b) > c ? max(a,b) : c;
    }
}
*/

